﻿using System;
using System.ComponentModel;

namespace Vtron.HipcConfigurationTools.Domain
{
    /// <summary>
    /// 系统信息
    /// </summary>
    public class SystemConfigInfo : INotifyPropertyChanged
    {
        #region Fields

        private string boardType;
        private DateTime sysTime;
        private string devName;

        #endregion

        #region Properties

        /// <summary>
        /// 设备类型
        /// </summary>
        public string BoardType
        {
            get { return boardType; }
            set
            {
                boardType = value;
                if (PropertyChanged != null)
                {
                    PropertyChanged.Invoke(this, new PropertyChangedEventArgs("BoardType"));
                }
            }
        }

        /// <summary>
        /// 系统时间
        /// </summary>
        public DateTime SysTime
        {
            get { return sysTime; }
            set
            {
                sysTime = value;
                if (PropertyChanged != null)
                {
                    PropertyChanged.Invoke(this, new PropertyChangedEventArgs("SysTime"));
                }
            }
        }

        /// <summary>
        /// 设备名称
        /// </summary>
        public string DevName
        {
            get { return devName; }
            set
            {
                devName = value;
                if (PropertyChanged != null)
                {
                    PropertyChanged.Invoke(this, new PropertyChangedEventArgs("DevName"));
                }
            }
        }

        #endregion

        public event PropertyChangedEventHandler PropertyChanged;
    }
}
